package com.my.study.mapstruct.dto;

import java.io.Serializable;

/**
 * 传输对象，用于Application的入参和出参
 * <p>
 * 包括CQES：
 *     1.Command:
 *     2.Query:
 *     3.Event:
 *     4.Request/Response:
 * </p>
 *
 * @author: yidujun
 * @create: 2021/06/23 15:47
 */
public class OrderDTO implements Serializable {
    private static final long serialVersionUID = -6825236410837697688L;

    private Long orderId;

    private String orderName;


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getOrderName() {
        return orderName;
    }

    public void setOrderName(String orderName) {
        this.orderName = orderName;
    }

    @Override
    public String toString() {
        return "OrderDTO{" +
                "orderId=" + orderId +
                ", orderName='" + orderName + '\'' +
                '}';
    }
}
